package com.yokit.c2c.mapper;

import com.yokit.c2c.pojo.Order;

import java.util.List;

public interface OrderMapper {
  int deleteByPrimaryKey(Integer id);

  int insert(Order record);

  int insertSelective(Order record);

  Order selectByPrimaryKey(Integer id);

  int updateByPrimaryKeySelective(Order record);

  int updateByPrimaryKey(Order record);

  List<Order> selectByUserId(Integer userId);

  List<Order> selectByUserIdAndState(String userId, String state);
}